# import pandas as pd
# pd.set_option('display.unicode.east_asian_width',True)
# df = pd.read_excel('超市运营数据.xlsx')
# df['总额'] = df['价格']
# df1 = df.groupby('销售经理').agg({'总额':'sum'})
# df1['排名'] = df1.rank(method='first',ascending=True)
# df1.sort_values(by='排名',ascending=True,inplace=True)
# print(df1)

import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_excel('学生各学期成绩表.xlsx')
x=df['序号']
y=df['语文']
plt.plot(x,y)
plt.figure('学生成绩',(5,4),facecolor='yellow')
plt.plot(x,y)
plt.show()

import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_excel('学生各学期成绩表.xlsx')
plt.figure(figsize=(12,8))
x=df['序号']
plt.subplot(2,2,1)
plt.plot(x,df['语文'])
plt.subplot(2,2,2)
plt.plot(x,df['数学'])
plt.subplot(2,2,3)
plt.plot(x,df['英语'])
plt.subplot(2,2,4)
plt.plot(x,['综合'])
plt.show()